package com.cskaoyan.shopping.service.impl;

import com.cskaoyan.shopping.dal.entitys.Address;
import com.cskaoyan.shopping.dal.persistence.UserAddressMapper;
import com.cskaoyan.shopping.service.IUserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * \* User: 余雨健
 * \* Date: 2022/10/27
 * \* Time: 14:53
 **/
@Service
public class IUserAddressServiceImpl implements IUserAddressService {

    @Autowired
    UserAddressMapper userAddressMapper;

    @Override
    public List<Address> userAddress(String username) {
        List<Address> addresses = userAddressMapper.selectAddressByUserName(username);
        return addresses;
    }
}
